<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>getDateString :: Functions (k-Wave)</title>
	<link rel="stylesheet" href="kwavehelpstyle.css" type="text/css">
</head>

<body>
<div class="content">

<h1>getDateString</h1>
<p class="purpose">Create a string of the current date and time.</p>

<h2>Syntax</h2>

<pre class="codeinput">
date_string = getDateString()
</pre>

<h2>Description</h2>
<p><code>getDateString</code> returns a string of the current date and time using <code>datestr</code> but replacing the white space and : character with an en dash.</p>

<h2>Outputs</h2>

<table class="body">
    <tr valign="top">
        <td width = "150"><code>date_string</code></td>
        <td>formatted string of the current date and time</td>
    </tr>
</table>

<h2>See Also</h2>

<code><a href="matlab: doc clock">clock</a></code>, <code><a href="matlab: doc date">date</a></code>, <code><a href="matlab: doc datestr">datestr</a></code>

</div></body></html>